#ifndef __LQUEUE_H__
#define __LQUEUE_H__

#include "dlist.h"

typedef dlist_t lqueue_t;

extern int lqueue_init(lqueue_t **q, int size);

extern int lqueue_empty(const lqueue_t *q);

extern int lqueue_enqueue(lqueue_t *q, const void *data);

extern int lqueue_dequeue(lqueue_t *q, void *data);

extern void lqueue_destroy(lqueue_t **q);

#endif
